<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>EVON Global Logistics Solution</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/functionality.js"></script>
</head>

<body onload="hideall()">
<sj:div id="createMemberDiv"
	cssClass="maincontent" indicator="indicator">
	<!--<div class="clear"></div>
	<div class="headingbg">Create Member</div>
	<div class="clear"></div>
	--><s:actionmessage />
	<s:actionerror />
	<s:fielderror></s:fielderror>
	<s:form id="createMemberForm" action="addMember" theme="simple" validate="true">
		<table width="99%" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td><b>Selected Yard :</b> <s:select label="Select Yard"
					headerKey="-1" headerValue="Select Yard" list="listYard"
					listKey="id" listValue="name" name="selectedYardId" disabled="true"/></td>
			</tr>
			<s:hidden name="memberDTO.id" id="memberDTO.id"
				value="%{memberDTO.id}"></s:hidden>

			<tr>
				<td style="height: 10px;"></td>
			</tr>
		</table>
		<table width="99%" border="0" align="center" cellpadding="4"
			cellspacing="1" class="gridtable">
			<tr>
				<th colspan="4">Edit Details</th>
			</tr>
			<tr>
				<td width="10%">First Name</td>
				<td width="20%"><s:textfield name="memberDTO.name"
					label="Name :" value="%{memberDTO.name}" maxlength="50"/></td>
				<td width="10%">Middle Name</td>
				<td width="20%"><s:textfield name="memberDTO.middleName"
					label="Name :" value="%{memberDTO.middleName}"  maxlength="50"/></td>
				<td width="10%">Last Name</td>
				<td width="20%"><s:textfield name="memberDTO.lastName"
					label="Name :" value="%{memberDTO.lastName}"  maxlength="50"/></td>

				</td>
			</tr>
			<tr class="alt">
				<td>City</td>
				<td><s:textfield name="memberDTO.city" label="City :"
					value="%{memberDTO.city}"  maxlength="50"/></td>
				<td>Address</td>
				<td><s:textfield name="memberDTO.address" label="Address :"
					value="%{memberDTO.address}"  maxlength="100"/></td>
				<td>Phone</td>
				<td><s:textfield name="memberDTO.phone" label="Phone :"
					value="%{memberDTO.phone}"  maxlength="13"/></td>

			</tr>
			<tr>
				<td>Occupied</td>
				<td><s:checkbox name="%{memberDTO.active}" fieldValue="true"
					disabled="true"></s:checkbox> <!--<s:textfield name="memberDTO.active" label="Active :" value="%{memberDTO.active}" />
		--></td>
				<td>type</td>
				<td><s:textfield name="memberDTO.type" label="Description :"
					value="%{memberDTO.type}" /></td>
				<td></td>
				<td></td>
			</tr>

		</table>
		<table width="99%" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tr>
				<td style="height: 10px;"></td>
			</tr>
			<tr>
				<td align="right"><sj:submit formIds="createMemberForm"
					targets="createMemberDiv" indicator="indicator" value="Submit"
					cssClass="btnbg" /></td>
					 <td align="right">
					<s:url var="backUrl" action="manageMember" escapeAmp="false">
					<s:param name="selectedYardId" value="%{selectedYardId}"/>
					<s:param name="oemType" value="%{oemType}"/></s:url>
				<sj:submit href="%{backUrl}"  targets="createMemberDiv" formIds="createMemberForm" cssClass="btnbg" value="Back" />
				
				</td>
			</tr>
		</table>
	</s:form>
</sj:div>
</body>
</html>
